{% load static %}

<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Automation</title>
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css">
    <link rel="stylesheet" href="{% static 'css/top.css' %}" type="text/css">

    <script type="text/javascript" src="{% static 'js/jquery-1.11.0.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/e-smart-zoom-jquery.min.js' %}"></script>

    <script>
        $(document).ready(function () {
            var windowH = $(window).height();
            $('#top').smartZoom();
            //$('#top').css('height',windowH);

            $('#myCarousel').carousel({ interval: 1800000 });
        });
    </script>
</head>


<body>
    <div id="left">
        <div id="topContainer">
            <img id="top" src="{% static 'images/full_top.jpg' %}" />
        </div>
    </div>

    <div id="right">
        <form action="{% url 'autocases:save_top' %}" method="post" class="form-horizontal">
            <p>请选择测试Top:</p>
            <div id="myCarousel" class="carousel slide">
                <ol class="carousel-indicators">
                    <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                    <li data-target="#myCarousel" data-slide-to="1"></li>
                    <li data-target="#myCarousel" data-slide-to="2"></li>
                </ol>

                <div class="carousel-inner">
                    <div class="item active">
                        <h2>AC</h2>
                        {% include "section/ac.html" %}
                    </div>
                    <div class="item">
                        <h2>Switch</h2>
                        {% include "section/switch.html" %}
                    </div>
                    <div class="item">
                        <h2>PoE</h2>
                        {% include "section/poe.html" %}
                    </div>
                </div>

                <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                    <span class="sr-only">Previous</span>
                </a>
                <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                    <span class="sr-only">Next</span>
                </a>
            </div>
            <button type="submit" class="btn  btn-default">提交</button>
        </form>
    </div>
</body>

</html>